package day1103.demo04;

import java.util.ArrayList;
import java.util.List;
import java.util.function.Supplier;

/**
 * @program: qy158
 * @description:
 * @author: 闫克起2
 * @create: 2022-11-03 10:49
 **/
public class TestSupplier {
    public static void main(String[] args) {
        Supplier<String> s=()->{return "哈哈哈哈";};
        fun(s);


    }
    public static void fun(Supplier<String> supplier){
        String a = supplier.get();
        System.out.println(a);
    }
}
